package dyyx;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;

@Aspect
public class LogAspect {

	// @Pointcut("execution(* dyyx.*.*(..))")
	@Pointcut("execution(* dyyx.Pet.sayHello(..))")
    public void log() {}

    @Around("log()")
    public Object doLog(ProceedingJoinPoint joinPoint) throws Throwable {
        System.out.println("loadtime  weave ,before,"+joinPoint);
        Object result = joinPoint.proceed();
        System.out.println("loadtime  weave ,after,"+joinPoint);

        return result;
    }
    
    
}
